from rest_framework import serializers
from rest_framework.response import Response 
from app01 import models
class Psychologist_class_list(serializers.ModelSerializer):  
    class Meta:  
        model = models.Classroom  
        fields = ['class_name','student_count']
    def to_representation(self, instance):
        representation = super().to_representation(instance)
        representation['status'] = True  # 你可以根据需要设置这个字段的值
        return representation        